package linkedList;

public class teatWithHeadTest {
    public static void main(String[] args) {
        LinkdeWithHead linkdeWithHead=new LinkdeWithHead();
        linkdeWithHead.addLast(2);
        linkdeWithHead.addLast(2);
        linkdeWithHead.addLast(3);
        linkdeWithHead.addLast(4);
        linkdeWithHead.addLast(2);
        System.out.println(linkdeWithHead);
//        linkdeWithHead.add(2,20);
//        System.out.println(linkdeWithHead);
//        linkdeWithHead.remove(1);
//        System.out.println(linkdeWithHead);
        linkdeWithHead.removeAllVal(2);
        System.out.println(linkdeWithHead);
    }
}
